<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */

$fp = @file($strTemplatePath."Add.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);

while(list($k, $v) = each($_strVirtualHost)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

//找出所有 總監的 帳號
$strSQL = "select * from `bet_Member` where MemberGroup = 5";
if(!$RS = mysql_query($strSQL, $$_Conn)){
	$GLOBALS["errormessage"] = $_strVirtualHost["ErrMessage"];//"系統發生錯誤, 請連絡工程師！";
	$GLOBALS["errorhidden"] = "\n Error: ".mysql_error($$_Conn).",\nSQL: ".$strSQL.",\nLine: ".__LINE__.",\nPage: ".__FILE__;
	ErrMsgOutputHTML("Error", "", 1);
}

$arrDirector = array();
while($Rows = mysql_fetch_object($RS)){
	$strStyle = "";
	if($arrDirectorIsLock[$intDID] == '1'){	//停用
		$strStyle = "background-color: #000000; color: #FFFFFF";
	}elseif($arrDirectorIsLock[$intDID] == '2'){ //停壓
		$strStyle = "background-color: #FF0000; color: #FFFFFF";
	}

	$arrDirector[] = '<input type="checkbox" name="arrDID['.$Rows -> ID.']" value="'.$Rows -> ID.'"><a style="'.$strStyle.'">'.$Rows -> Account.'</a>';
}

$fp = str_replace("{DirectorCheckBox}", join("<br />", $arrDirector), $fp);

//輸出
WebOutputHTML($fp, 1);
?>